< previous page page_120 next page >

Page 120
   End If
End Function
This class takes advantage of a new ability of Visual Basic 6 to use user-defined types as parameters and return values of class methods and properties. If you are using Visual Basic 5, you will not be able to return the CLSID value as shown here. Your easiest solution in this case is probably to have the class set the form label values directly.
Results
When you run the program, the form shown in Figure P26-1 is displayed.
Clearly, something is wrong. Your job: Fix the program so that it displays the CLSID for the object.
0120-01.gif
Figure P26-1:
The GUIDPuzzle program results

 
< previous page page_120 next page >